package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 物流表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_shipping")
public class ShopShipping extends Model<ShopShipping> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id 物流
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 快递公司名称
     */
	@TableField("delivery_corp_name")
	private String deliveryCorpName;
    /**
     * 快递费用
     */
	@TableField("delivery_fee")
	private BigDecimal deliveryFee;
    /**
     * 快递序列号
     */
	@TableField("delivery_sn")
	private String deliverySn;
    /**
     * 快递类型名称
     */
	@TableField("delivery_type_name")
	private String deliveryTypeName;
    /**
     * 备忘录
     */
	private String memo;
    /**
     * 发货地址
     */
	@TableField("ship_address")
	private String shipAddress;
    /**
     * 发货地区
     */
	@TableField("ship_area")
	private String shipArea;
    /**
     * 发货地区路径
     */
	@TableField("ship_area_path")
	private String shipAreaPath;
    /**
     * 联系方式
     */
	@TableField("ship_mobile")
	private String shipMobile;
    /**
     * 收货人姓名
     */
	@TableField("ship_name")
	private String shipName;
    /**
     * 手机号码
     */
	@TableField("ship_phone")
	private String shipPhone;
    /**
     * 邮政编码
     */
	@TableField("ship_zip_code")
	private String shipZipCode;
    /**
     * 物流序列号
     */
	@TableField("shipping_sn")
	private String shippingSn;
    /**
     * 快递类型id
     */
	@TableField("delivery_type_id")
	private Integer deliveryTypeId;
    /**
     * 订单id
     */
	@TableField("order_id")
	private Integer orderId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getDeliveryCorpName() {
		return deliveryCorpName;
	}

	public void setDeliveryCorpName(String deliveryCorpName) {
		this.deliveryCorpName = deliveryCorpName;
	}

	public BigDecimal getDeliveryFee() {
		return deliveryFee;
	}

	public void setDeliveryFee(BigDecimal deliveryFee) {
		this.deliveryFee = deliveryFee;
	}

	public String getDeliverySn() {
		return deliverySn;
	}

	public void setDeliverySn(String deliverySn) {
		this.deliverySn = deliverySn;
	}

	public String getDeliveryTypeName() {
		return deliveryTypeName;
	}

	public void setDeliveryTypeName(String deliveryTypeName) {
		this.deliveryTypeName = deliveryTypeName;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getShipAddress() {
		return shipAddress;
	}

	public void setShipAddress(String shipAddress) {
		this.shipAddress = shipAddress;
	}

	public String getShipArea() {
		return shipArea;
	}

	public void setShipArea(String shipArea) {
		this.shipArea = shipArea;
	}

	public String getShipAreaPath() {
		return shipAreaPath;
	}

	public void setShipAreaPath(String shipAreaPath) {
		this.shipAreaPath = shipAreaPath;
	}

	public String getShipMobile() {
		return shipMobile;
	}

	public void setShipMobile(String shipMobile) {
		this.shipMobile = shipMobile;
	}

	public String getShipName() {
		return shipName;
	}

	public void setShipName(String shipName) {
		this.shipName = shipName;
	}

	public String getShipPhone() {
		return shipPhone;
	}

	public void setShipPhone(String shipPhone) {
		this.shipPhone = shipPhone;
	}

	public String getShipZipCode() {
		return shipZipCode;
	}

	public void setShipZipCode(String shipZipCode) {
		this.shipZipCode = shipZipCode;
	}

	public String getShippingSn() {
		return shippingSn;
	}

	public void setShippingSn(String shippingSn) {
		this.shippingSn = shippingSn;
	}

	public Integer getDeliveryTypeId() {
		return deliveryTypeId;
	}

	public void setDeliveryTypeId(Integer deliveryTypeId) {
		this.deliveryTypeId = deliveryTypeId;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopShipping{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", deliveryCorpName=" + deliveryCorpName +
			", deliveryFee=" + deliveryFee +
			", deliverySn=" + deliverySn +
			", deliveryTypeName=" + deliveryTypeName +
			", memo=" + memo +
			", shipAddress=" + shipAddress +
			", shipArea=" + shipArea +
			", shipAreaPath=" + shipAreaPath +
			", shipMobile=" + shipMobile +
			", shipName=" + shipName +
			", shipPhone=" + shipPhone +
			", shipZipCode=" + shipZipCode +
			", shippingSn=" + shippingSn +
			", deliveryTypeId=" + deliveryTypeId +
			", orderId=" + orderId +
			"}";
	}
}
